# coding:utf-8

from datetime import datetime
from datetime import timedelta

now = datetime.now()
print(now, type(now))  # 2022-07-19 11:43:52.751402 <class 'datetime.datetime'>

three_days = timedelta(days=3)
after_three_days = now + three_days
print(after_three_days)  # 2022-07-22 11:47:02.084710

before_three_day = now - three_days
print(before_three_day)  # 2022-07-16 11:47:02.084710

an_hour = timedelta(hours=1)
after_an_hour = now + an_hour
print(after_an_hour)  # 2022-07-19 12:48:30.238289
